package com.xukang.qd.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.http.HttpServlet;

/**
 * 监听器。spring容易初始化后加载,无用
 */

public class ConfigueListener extends HttpServlet implements ServletContextListener {

    public static Logger logger= LoggerFactory.getLogger(ConfigueListener.class);

    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        logger.info("监听初始化");
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {
        logger.info("监听销毁");
    }
}
